package com.itheima.controller.util;

import com.itheima.daomain.Book;
import lombok.Data;

import java.util.List;

/**
 * @Auther: 宋H
 * @Date: 2022/8/19
 * @Description: com.itheima.controller.util
 * @version: 1.0
 */
@Data
public class Relut {
    private boolean flag;
    private Object data;
    private String msg;

    public Relut() {

    }

    public Relut(boolean flag, Object data) {
        this.flag = flag;
        this.data = data;
    }

    public Relut(boolean flag) {
        this.flag = flag;
    }

    public Relut(boolean flag, Object data,String msg) {
        this.flag = flag;
        this.data = data;
        this.msg = msg;
    }

    public Relut(boolean flag,String msg) {
        this.flag = flag;
        this.msg = msg;
    }

}
